CFLAGS= -g -DDEBUG -arch=sm_23
#CFLAGS= -O3 -xopenmp=parallel
CC= nvcc
LIBS=  -lm 
OBJS= gauss_cuda.o
SRCS= ${OBJS:.o=.cu}
TARGET= gauss_cuda

all:${TARGET} 

${TARGET}:
	${CC} ${CFLAGS} -o gauss_cuda_normFirst gauss_cuda_normFirst.cu ${LIBS}
	${CC} ${CFLAGS} -o gauss_cuda_ori gauss_cuda_ori.cu ${LIBS}
	${CC} ${CFLAGS} -o gauss_cuda_uppertriangle gauss_cuda_uppertriangle.cu ${LIBS}
dep: 
	gccmakedep ${SRCS}
clean:
	rm *.o gauss_cuda_normFirst gauss_cuda_ori gauss_cuda_uppertriangle  *~ -rf 
